package com.spi.soconversion.orders.conversion;

public enum CItemType {
	LNR("LNR","PROD"),
	NC("NC","PROD"),
	STD("STD", "PROD"),
	SB("SB", "PROD"),
	SP("SP", "PROD"),
	SPE("SPE", "PROD"),
    SUITE("SUITE", "PROD"),
	WR("WR","PROD"),
	WRFEE("WRFEE","PROD"),
	EFEE("EFEE","PROD"),
	WTY("WTY", "PROD"),
	CON("CON", "PROD"),
    CUS("CUS", "PROD"),
    PINS("3PINS","PS"),
	ASBL("ASBL","PS"),
	HU("HU", "PS"),
	DEL("DEL", "DS"),
	INS("INS", "PS");

	private String code;
	private String displayText;
			
	private CItemType(String code,String displayText) {
		this.code= code;
		this.displayText=displayText;
	}
			
	public static String getMCFItemType(String cofiValue) {
		for (CItemType it : CItemType.values()) {
			if (it.code.equals(cofiValue)) {
				return it.displayText;
			}
		}
		return null;
	}
}
